/**
 * 授权 API
 */
import {
	http
} from '../request/main.js';


/**
 * 提交反馈
 * 
 * @returns {Promise}
 */
export function submit(type, content, photos) {
	return http.post('/feedback/submit', {
		type,
		content,
		photos
	})
}


/**
 * 反馈列表
 * 
 * @returns {Promise}
 */
export function getRecordList(page, page_size) {
	return http.post('/feedback/getRecordList', {
		page,
		page_size
	});
}

/**
 * 反馈详情
 * 
 * @returns {Promise}
 */
export function getRecordDetail(id) {
	return http.post('/feedback/getRecordDetail', {
		id
	});
}
